<?php

namespace App\Models\HR;

use App\Models\Mes\AuthUser;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Employee extends Base
{
    use HasFactory;

    protected $table = 'Employee';

    public function auth_user()
    {
        return $this->hasOne(AuthUser::class, "code", "Code");
    }
}
